{{****************************************************************************}}
{{* Reverse lookup plugin template                                           *}}
{{* Author   : Benoit Frigon                                                 *}}
{{* Last mod : 7 oct 2012                                                    *}}
{{*                                                                          *}}
{{*                                                                          *}}
{{****************************************************************************}}
<form id="form_map" action="" method="get">
	<input type="hidden" name="path" value="{{$tab_path}}" />

	<div class="box toolbar">
		<ul class="toolbar" id="toolbar_map">
			<li class="text">Number :</li>
			<li><input type="text" name="number" id="txt_number" style="width: 200px;" value="{{$_REQUEST['number']|if_empty|""}}" /></li>
			<li><button id="btn_lookup" type="submit" title="Search"><img src="images/blank.png" class="icon16-search" /></button></li>
			<li><a id="btn_clear" title="Clear search results" href="?path={{$tab_path}}"><img src="images/blank.png" class="icon16-clear" /></a></li>
			<li class="text spacer"><span style="display: none;" id="no_result">No results found.</span></li>
		</ul>
		<div class="clear"></div>
	</div>
</form>

<div class="map {{is|"$static==true"|static}}">
	<div class="box results">
		<div id="map_result_info" style="display: {{is|"strlen($number)>0"|block|none}}">
			<h1 id="result_number">{{$number|format_phone}}</h1>
			<h2 id="result_name">{{$result_name}}</h2>
			<span id="result_address">{{$result_address}}</span>
			<label>Carrier :</label><span id="result_carrier">{{$result_carrier}}</span>
			<label>Line type :</label><span id="result_line_type">{{$result_line_type}}</span>
		</div>
	</div>
	<div id="map_viewport"><img id="static" src="{{$static_map_url}}" alt="map"/></div>
</div>

<div class="popup dialog box" id="dialog_map_lookup">
	<h1>Reverse lookup</h1>
	Searching <span id="lookup_number"></span> ...
	<div class="break"></div>
	<div class="toolbar center">
		<ul>
			<li><a id="btn_cancel" href="javascript:map_cancel_lookup()"><img src="images/blank.png" class="icon16-cancel">Cancel</a></li>
		</ul>
	</div>
</div>
